package com.adtech.adms.commons.web.tag;

import java.io.IOException;
import java.io.Writer;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;

import com.adtech.adms.SessionKey;
import com.adtech.adms.commons.util.BeanLoader;
import com.adtech.adms.system.pojo.User;
import com.adtech.core.Settings;
import com.opensymphony.xwork2.util.ValueStack;

/**
 * @author Dormin 
 * @since 2011-5-31 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class MainContentTableComponent extends Component {
	
	private final static Map<Object,Map<String,String>> statisticContentMap = new ConcurrentHashMap<Object,Map<String,String>>();

	public MainContentTableComponent(ValueStack stack, HttpServletRequest request,HttpServletResponse response) {
		super(stack);

		user = (User) request.getSession().getAttribute(SessionKey.SESSION_KEY_USER);
	}

	public static Map<Object, Map<String, String>> getStatisticContentMap() {
		return statisticContentMap;
	}


	/**
	 * 模块代码
	 */
	private String title;
	private String functionid;
	private String featureCode;
	private User user;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFunctionid() {
		return functionid;
	}

	public void setFunctionid(String functionid) {
		this.functionid = functionid;
	}

	public String getFeatureCode() {
		return featureCode;
	}

	public void setFeatureCode(String featureCode) {
		this.featureCode = featureCode;
	}

	@Override
	public boolean start(Writer writer) {
		boolean start = super.start(writer);
		

		return start;
	}



}
